package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CulturePoolMapper;
import com.ruoyi.system.domain.CulturePool;
import com.ruoyi.system.service.ICulturePoolService;

/**
 * 养殖池Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-17
 */
@Service
public class CulturePoolServiceImpl implements ICulturePoolService 
{
    @Autowired
    private CulturePoolMapper culturePoolMapper;

    /**
     * 查询养殖池
     * 
     * @param id 养殖池主键
     * @return 养殖池
     */
    @Override
    public CulturePool selectCulturePoolById(Long id)
    {
        return culturePoolMapper.selectCulturePoolById(id);
    }

    /**
     * 查询养殖池列表
     * 
     * @param culturePool 养殖池
     * @return 养殖池
     */
    @Override
    public List<CulturePool> selectCulturePoolList(CulturePool culturePool)
    {
        return culturePoolMapper.selectCulturePoolList(culturePool);
    }

    /**
     * 新增养殖池
     * 
     * @param culturePool 养殖池
     * @return 结果
     */
    @Override
    public int insertCulturePool(CulturePool culturePool)
    {
        return culturePoolMapper.insertCulturePool(culturePool);
    }

    /**
     * 修改养殖池
     * 
     * @param culturePool 养殖池
     * @return 结果
     */
    @Override
    public int updateCulturePool(CulturePool culturePool)
    {
        return culturePoolMapper.updateCulturePool(culturePool);
    }

    /**
     * 批量删除养殖池
     * 
     * @param ids 需要删除的养殖池主键
     * @return 结果
     */
    @Override
    public int deleteCulturePoolByIds(Long[] ids)
    {
        return culturePoolMapper.deleteCulturePoolByIds(ids);
    }

    /**
     * 删除养殖池信息
     * 
     * @param id 养殖池主键
     * @return 结果
     */
    @Override
    public int deleteCulturePoolById(Long id)
    {
        return culturePoolMapper.deleteCulturePoolById(id);
    }
}
